import { cockpitRoutes } from './cockpit'
import { eventRoutes } from './event'
import { CampusSecurityRoutes } from './campusSecurity'
import { gridmapRoutes } from './gridmap'
import { SiteDataRoutes } from './siteData'
import { PropertyManagementRoutes } from './propertyManagement'
import { ProtectForestsRoutes } from './protectForests'
import { ProtectRoadRoutes } from './protectRoad'
import { ProtectRiverRoutes } from './protectRiver'
import { ProtectSiteRoutes } from './protectSite'
import { inspectVisitRoutes } from './inspectVisit'
import { learnTestRoutes } from './learnTest'
import loginRoutes from './login'
import myRoutes from './my'
import { noticeRoutes } from './notice'
import otherRoutes from './other'
import { partyBuildingRoutes } from './partyBuilding'
import { residentRoutes } from './resident'
import { routineRoutes } from './routine'
export default [
  {
    path: '/',
    name: 'home',
    redirect: '/home'
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import('@/views'),
    meta: {
      title: '网格通'
    },
    children: [
      {
        path: '/home',
        name: 'home',
        meta: {
          title: '首页'
        },
        component: () => import('@/views/Home')
      },
      {
        path: '/my',
        name: 'my',
        meta: {
          title: '我的'
        },
        component: () => import('@/views/My')
      },
      {
        path: '/cockpit/home',
        name: 'cockpit-home',
        meta: {
          title: '领导驾驶舱首页'
        },
        component: () => import('@/views/Cockpit/Home')
      }
    ]
  },
  ...loginRoutes,
  ...myRoutes,
  ...otherRoutes,
  ...cockpitRoutes,
  ...eventRoutes,
  ...inspectVisitRoutes,
  ...learnTestRoutes,
  ...noticeRoutes,
  ...residentRoutes,
  ...routineRoutes,
  ...partyBuildingRoutes,
  ...gridmapRoutes,
  ...CampusSecurityRoutes,
  ...PropertyManagementRoutes,
  ...ProtectForestsRoutes,
  ...SiteDataRoutes,
  ...ProtectRoadRoutes,
  ...ProtectRiverRoutes,
  ...ProtectSiteRoutes
]
